package day004;

public class MethodTest03 {
    public static void main(String[] args) {
        int max = getMax(10, 20, 30);
        System.out.println("10、20、30中的最大值是：" + max);
    }

    public static int getMax(int a, int b, int c) {
        int maxTemp = (a >= b) ? a : b;
        return (maxTemp >= c) ? maxTemp : c;
    }
}
